$(document).ready(function()
{
	/**
	* 船舶
	*/
	var shipyardConjuncture=$('#MC_Subscription_Tab_ShipyardConjuncture');
	var shipyardTrends=$('#MC_Subscription_Tab_ShipyardTrends');
	var shipyardOrdersheet=$('#MC_Subscription_Tab_ShipyardOrdersheet');
	var shipyardAnalysis=$('#MC_Subscription_Tab_ShipyardAnalysis');
	
	var panelShipyardConjuncture=$('#MC_Subscription_TabPanel_ShipyardConjuncture');
	var panelShipyardTrends=$('#MC_Subscription_TabPanel_ShipyardTrends');	
	var panelShipyardOrdersheet=$('#MC_Subscription_TabPanel_ShipyardOrdersheet');
	var panelShipyardAnalysis=$('#MC_Subscription_TabPanel_ShipyardAnalysis');
	
	var shipyard_more=$('#MC_Subscription_Tab_More_Shipyard');
	
	shipyard_more.attr('href',$($('#Shipyard .ranktype ul li')[0]).find('a').attr('href').replace('#',''));
	
	//事件绑定-船舶行情
	if(shipyardConjuncture.size()>0)
	{
		shipyardConjuncture.mouseover(function()
		{
			//处理MORE链接			
			shipyard_more.attr('href',shipyardConjuncture.attr('href').replace('#',''));
			//处理选项卡显示
			panelShipyardConjuncture.css('display','block');			
			if(shipyardTrends.size()>0){
				panelShipyardTrends.css('display','none');
			}
			if(shipyardOrdersheet.size()>0){
				panelShipyardOrdersheet.css('display','none');
			}
			if(shipyardAnalysis.size()>0){
				panelShipyardAnalysis.css('display','none');
			}	
		});
	}
	
	//事件绑定-船厂动态
	if(shipyardTrends.size()>0)
	{
		shipyardTrends.mouseover(function()
		{
			//处理MORE链接			
			shipyard_more.attr('href',shipyardTrends.attr('href').replace('#',''));
			//处理选项卡显示
			panelShipyardTrends.css('display','block');			
			if(shipyardConjuncture.size()>0){
				panelShipyardConjuncture.css('display','none');
			}
			if(shipyardOrdersheet.size()>0){
				panelShipyardOrdersheet.css('display','none');
			}
			if(shipyardAnalysis.size()>0){
				panelShipyardAnalysis.css('display','none');
			}		
		});
	}	
	
	//事件绑定-船厂订单
	if(shipyardOrdersheet.size()>0)
	{		
		shipyardOrdersheet.mouseover(function()
		{
			//处理MORE链接			
			shipyard_more.attr('href',shipyardOrdersheet.attr('href').replace('#',''));
			//处理选项卡显示
			panelShipyardOrdersheet.css('display','block');			
			if(shipyardConjuncture.size()>0){
				panelShipyardConjuncture.css('display','none');
			}
			if(shipyardTrends.size()>0){
				panelShipyardTrends.css('display','none');
			}
			if(shipyardAnalysis.size()>0){
				panelShipyardAnalysis.css('display','none');
			}			
		});
	}
	
	//事件绑定-运行分析
	if(shipyardAnalysis.size()>0)
	{
		shipyardAnalysis.mouseover(function()
		{
			//处理MORE链接			
			shipyard_more.attr('href',shipyardAnalysis.attr('href').replace('#',''));
			//处理选项卡显示
			panelShipyardAnalysis.css('display','block');			
			if(shipyardConjuncture.size()>0){
				panelShipyardConjuncture.css('display','none');
			}
			if(shipyardTrends.size()>0){
				panelShipyardTrends.css('display','none');
			}				
			if(shipyardOrdersheet.size()>0){
				panelShipyardOrdersheet.css('display','none');
			}	
		});
	}	
	
	/**
	* 船配
	*/
	var ancillaryNews=$('#MC_Subscription_Tab_AncillaryNews');
	var ancillaryCompany=$('#MC_Subscription_Tab_AncillaryCompany');
	var ancillaryOrdersheet=$('#MC_Subscription_Tab_AncillaryOrdersheet');
	var ancillarySteel=$('#MC_Subscription_Tab_AncillarySteels');
	
	var panelAncillaryNews=$('#MC_Subscription_TabPanel_AncillaryNews');
	var panelAncillaryCompany=$('#MC_Subscription_TabPanel_AncillaryCompany');	
	var panelAncillaryOrdersheet=$('#MC_Subscription_TabPanel_AncillaryOrdersheet');
	var panelAncillarySteel=$('#MC_Subscription_TabPanel_AncillarySteels');
	
	var ancillary_more=$('#MC_Subscription_Tab_More_Ancillary');
	
	ancillary_more.attr('href',$($('#Ancillary .ranktype ul li')[0]).find('a').attr('href').replace('#',''));
	
	//事件绑定-船配资讯
	if(ancillaryNews.size()>0)
	{
		ancillaryNews.mouseover(function()
		{
			//处理MORE链接			
			ancillary_more.attr('href',ancillaryNews.attr('href').replace('#',''));
			//处理选项卡显示
			panelAncillaryNews.css('display','block');
			if(ancillaryCompany.size()>0){
				panelAncillaryCompany.css('display','none');
			}
			if(ancillaryOrdersheet.size()>0){
				panelAncillaryOrdersheet.css('display','none');
			}
			if(ancillarySteel.size()>0){
				panelAncillarySteel.css('display','none');
			}	
		});
	}
	
	//事件绑定-船配企业
	if(ancillaryCompany.size()>0)
	{
		ancillaryCompany.mouseover(function()
		{
			//处理MORE链接			
			ancillary_more.attr('href',ancillaryCompany.attr('href').replace('#',''));
			//处理选项卡显示
			panelAncillaryCompany.css('display','block');
			if(ancillaryNews.size()>0){
				panelAncillaryNews.css('display','none');
			}
			if(ancillaryOrdersheet.size()>0){
				panelAncillaryOrdersheet.css('display','none');
			}
			if(ancillarySteel.size()>0){
				panelAncillarySteel.css('display','none');
			}		
		});
	}	
	
	//事件绑定-船配订单
	if(ancillaryOrdersheet.size()>0)
	{		
		ancillaryOrdersheet.mouseover(function()
		{
			//处理MORE链接			
			ancillary_more.attr('href',ancillaryOrdersheet.attr('href').replace('#',''));
			//处理选项卡显示
			panelAncillaryOrdersheet.css('display','block');
			if(ancillaryNews.size()>0){
				panelAncillaryNews.css('display','none');
			}
			if(ancillaryCompany.size()>0){
				panelAncillaryCompany.css('display','none');
			}
			if(ancillarySteel.size()>0){
				panelAncillarySteel.css('display','none');
			}			
		});
	}
	
	//事件绑定-钢材行情
	if(ancillarySteel.size()>0)
	{
		ancillarySteel.mouseover(function()
		{
			//处理MORE链接			
			ancillary_more.attr('href',ancillarySteel.attr('href').replace('#',''));
			//处理选项卡显示
			panelAncillarySteel.css('display','block');
			if(ancillaryNews.size()>0){
				panelAncillaryNews.css('display','none');
			}
			if(ancillaryCompany.size()>0){
				panelAncillaryCompany.css('display','none');
			}				
			if(ancillaryOrdersheet.size()>0){
				panelAncillaryOrdersheet.css('display','none');
			}	
		});
	}

	/**
	* 船配
	*/
	var shippingMarket=$('#MC_Subscription_Tab_ShippingMarket');
	var shippingTrends=$('#MC_Subscription_Tab_ShippingTrends');

	var panelShippingMarket=$('#MC_Subscription_TabPanel_ShippingMarket');
    var panelShippingTrends=$('#MC_Subscription_TabPanel_ShippingTrends');
    
	var shipping_more=$('#MC_Subscription_Tab_More_Shipping');

	shipping_more.attr('href',$($('#Shipping .ranktype ul li')[0]).find('a').attr('href').replace('#',''));

	//事件绑定-航运市场
	if(shippingMarket.size()>0)
	{
		shippingMarket.mouseover(function()
		{
			//处理MORE链接
			shipping_more.attr('href',shippingMarket.attr('href').replace('#',''));
			//处理选项卡显示
			panelShippingMarket.css('display','block');
			if(shippingTrends.size()>0){
				panelShippingTrends.css('display','none');
			}
		});
	}

	//事件绑定-船东动态
	if(shippingTrends.size()>0)
	{
		shippingTrends.mouseover(function()
		{
			//处理MORE链接
			shipping_more.attr('href',shippingTrends.attr('href').replace('#',''));
			//处理选项卡显示
			panelShippingTrends.css('display','block');
			if(shippingMarket.size()>0){
				panelShippingMarket.css('display','none');
			}
		});
	}

	/**
	* 海工
	*/
	var maritimeworksTrends=$('#MC_Subscription_Tab_MaritimeworksTrends');
	var maritimeworksOrdersheet=$('#MC_Subscription_Tab_MaritimeworksOrdersheet');

	var panelMaritimeworksTrends=$('#MC_Subscription_TabPanel_MaritimeworksTrends');
    var panelMaritimeworksOrdersheet=$('#MC_Subscription_TabPanel_MaritimeworksOrdersheet');

	var maritimeworks_more=$('#MC_Subscription_Tab_More_Maritimeworks');

	maritimeworks_more.attr('href',$($('#Maritimeworks .ranktype ul li')[0]).find('a').attr('href').replace('#',''));

	//事件绑定-航运市场
	if(maritimeworksTrends.size()>0)
	{
		maritimeworksTrends.mouseover(function()
		{
			//处理MORE链接
			maritimeworks_more.attr('href',maritimeworksTrends.attr('href').replace('#',''));
			//处理选项卡显示
			panelMaritimeworksTrends.css('display','block');
			if(maritimeworksOrdersheet.size()>0){
				panelMaritimeworksOrdersheet.css('display','none');
			}
		});
	}

	//事件绑定-船东动态
	if(maritimeworksOrdersheet.size()>0)
	{
		maritimeworksOrdersheet.mouseover(function()
		{
			//处理MORE链接
			maritimeworks_more.attr('href',maritimeworksOrdersheet.attr('href').replace('#',''));
			//处理选项卡显示
			panelMaritimeworksOrdersheet.css('display','block');
			if(maritimeworksTrends.size()>0){
				panelMaritimeworksTrends.css('display','none');
			}
		});
	}
	
	/**
	* 数据
	*/
	var dataNew=$('#MC_Subscription_Tab_DataNew');
	var dataSecond=$('#MC_Subscription_Tab_DataSecond');
	var dataScrap=$('#MC_Subscription_Tab_DataScrap');
	var dataShipping=$('#MC_Subscription_Tab_DataShipping');
	var dataSteels=$('#MC_Subscription_Tab_DataSteels');
	var dataRent=$('#MC_Subscription_Tab_DataRent');
	
	var panelDataNew=$('#MC_Subscription_TabPanel_DataNew');
	var panelDataSecond=$('#MC_Subscription_TabPanel_DataSecond');	
	var panelDataScrap=$('#MC_Subscription_TabPanel_DataScrap');
	var panelDataShipping=$('#MC_Subscription_TabPanel_DataShipping');
	var panelDataSteels=$('#MC_Subscription_TabPanel_DataSteels');
	var panelDataRent=$('#MC_Subscription_TabPanel_DataRent');
	
	var data_more=$('#MC_Subscription_Tab_More_Data');
	
	data_more.attr('href',$($('#Data .ranktype ul li')[0]).find('a').attr('href').replace('#',''));
	
	//事件绑定-新造船市场
	if(dataNew.size()>0)
	{
		dataNew.mouseover(function()
		{
			//处理MORE链接			
			data_more.attr('href',dataNew.attr('href').replace('#',''));
			//处理选项卡显示
			panelDataNew.css('display','block');			
			if(dataSecond.size()>0){
				panelDataSecond.css('display','none');
			}
			if(dataScrap.size()>0){
				panelDataScrap.css('display','none');
			}
			if(dataShipping.size()>0){
				panelDataShipping.css('display','none');
			}
			if(dataSteels.size()>0){
				panelDataSteels.css('display','none');
			}
			if(dataRent.size()>0){
				panelDataRent.css('display','none');
			}			
		});
	}
	
	//事件绑定-二手船市场
	if(dataSecond.size()>0)
	{
		dataSecond.mouseover(function()
		{
			//处理MORE链接			
			data_more.attr('href',dataSecond.attr('href').replace('#',''));
			//处理选项卡显示
			panelDataSecond.css('display','block');			
			if(dataNew.size()>0){
				panelDataNew.css('display','none');
			}
			if(dataScrap.size()>0){
				panelDataScrap.css('display','none');
			}
			if(dataShipping.size()>0){
				panelDataShipping.css('display','none');
			}
			if(dataSteels.size()>0){
				panelDataSteels.css('display','none');
			}
			if(dataRent.size()>0){
				panelDataRent.css('display','none');
			}			
		});
	}
	
	//事件绑定-拆船市场
	if(dataScrap.size()>0)
	{
		dataScrap.mouseover(function()
		{
			//处理MORE链接			
			data_more.attr('href',dataScrap.attr('href').replace('#',''));
			//处理选项卡显示
			panelDataScrap.css('display','block');			
			if(dataNew.size()>0){
				panelDataNew.css('display','none');
			}			
			if(dataSecond.size()>0){
				panelDataSecond.css('display','none');
			}
			if(dataShipping.size()>0){
				panelDataShipping.css('display','none');
			}
			if(dataSteels.size()>0){
				panelDataSteels.css('display','none');
			}
			if(dataRent.size()>0){
				panelDataRent.css('display','none');
			}			
		});
	}
	
	//事件绑定-航运市场
	if(dataShipping.size()>0)
	{
		dataShipping.mouseover(function()
		{
			//处理MORE链接			
			data_more.attr('href',dataShipping.attr('href').replace('#',''));
			//处理选项卡显示
			panelDataShipping.css('display','block');			
			if(dataNew.size()>0){
				panelDataNew.css('display','none');
			}			
			if(dataSecond.size()>0){
				panelDataSecond.css('display','none');
			}
			if(dataScrap.size()>0){
				panelDataScrap.css('display','none');
			}
			if(dataSteels.size()>0){
				panelDataSteels.css('display','none');
			}
			if(dataRent.size()>0){
				panelDataRent.css('display','none');
			}			
		});
	}
	
	//事件绑定-钢材市场
	if(dataSteels.size()>0)
	{
		dataSteels.mouseover(function()
		{
			//处理MORE链接			
			data_more.attr('href',dataSteels.attr('href').replace('#',''));
			//处理选项卡显示
			panelDataSteels.css('display','block');			
			if(dataNew.size()>0){
				panelDataNew.css('display','none');
			}			
			if(dataSecond.size()>0){
				panelDataSecond.css('display','none');
			}
			if(dataScrap.size()>0){
				panelDataScrap.css('display','none');
			}
			if(dataShipping.size()>0){
				panelDataShipping.css('display','none');
			}
			if(dataRent.size()>0){
				panelDataRent.css('display','none');
			}			
		});
	}
	
	//事件绑定-租船市场
	if(dataRent.size()>0)
	{
		dataRent.mouseover(function()
		{
			//处理MORE链接			
			data_more.attr('href',dataRent.attr('href').replace('#',''));
			//处理选项卡显示
			panelDataRent.css('display','block');			
			if(dataNew.size()>0){
				panelDataNew.css('display','none');
			}			
			if(dataSecond.size()>0){
				panelDataSecond.css('display','none');
			}
			if(dataScrap.size()>0){
				panelDataScrap.css('display','none');
			}
			if(dataShipping.size()>0){
				panelDataShipping.css('display','none');
			}
			if(dataSteels.size()>0){
				panelDataSteels.css('display','none');
			}			
		});
	}	
	
	/**
	* 数据
	*/
	var finacingPolicy=$('#MC_Subscription_Tab_FinacingPolicy');
	var finacingCooperation=$('#MC_Subscription_Tab_FinacingCooperation');
	var finacingTrends=$('#MC_Subscription_Tab_FinacingTrends');
	var finacingIPO=$('#MC_Subscription_Tab_FinacingIPO');
	
	var panelFinacingPolicy=$('#MC_Subscription_TabPanel_FinacingPolicy');
	var panelFinacingCooperation=$('#MC_Subscription_TabPanel_FinacingCooperation');
	var panelFinacingTrends=$('#MC_Subscription_TabPanel_FinacingTrends');
	var panelFinacingIPO=$('#MC_Subscription_TabPanel_FinacingIPO');
	
	var finacing_more=$('#MC_Subscription_Tab_More_Finacing');
	
	//初始化more链接
	finacing_more.attr('href',$($('#Finacing .ranktype ul li')[0]).find('a').attr('href').replace('#',''));
	
	//事件绑定-信贷政策
	if(finacingPolicy.size()>0)
	{
		finacingPolicy.mouseover(function()
		{
			//处理MORE链接			
			finacing_more.attr('href',finacingPolicy.attr('href').replace('#',''));
			//处理选项卡显示
			panelFinacingPolicy.css('display','block');			
			if(finacingCooperation.size()>0){
				panelFinacingCooperation.css('display','none');
			}
			if(finacingTrends.size()>0){
				panelFinacingTrends.css('display','none');
			}
			if(finacingIPO.size()>0){
				panelFinacingIPO.css('display','none');
			}			
		});
	}	
	
	//事件绑定-银企合作
	if(finacingCooperation.size()>0)
	{
		finacingCooperation.mouseover(function()
		{
			//处理MORE链接			
			finacing_more.attr('href',finacingCooperation.attr('href').replace('#',''));
			//处理选项卡显示
			panelFinacingCooperation.css('display','block');			
			if(finacingPolicy.size()>0){
				panelFinacingPolicy.css('display','none');
			}
			if(finacingTrends.size()>0){
				panelFinacingTrends.css('display','none');
			}
			if(finacingIPO.size()>0){
				panelFinacingIPO.css('display','none');
			}			
		});
	}		
	
	//事件绑定-融资动态
	if(finacingTrends.size()>0)
	{
		finacingTrends.mouseover(function()
		{
			//处理MORE链接			
			finacing_more.attr('href',finacingTrends.attr('href').replace('#',''));
			//处理选项卡显示
			panelFinacingTrends.css('display','block');			
			if(finacingPolicy.size()>0){
				panelFinacingPolicy.css('display','none');
			}
			if(finacingCooperation.size()>0){
				panelFinacingCooperation.css('display','none');
			}
			if(finacingIPO.size()>0){
				panelFinacingIPO.css('display','none');
			}			
		});
	}	
	
	//事件绑定-融资上市
	if(finacingIPO.size()>0)
	{
		finacingIPO.mouseover(function()
		{
			//处理MORE链接			
			finacing_more.attr('href',finacingIPO.attr('href').replace('#',''));
			//处理选项卡显示
			panelFinacingIPO.css('display','block');			
			if(finacingPolicy.size()>0){
				panelFinacingPolicy.css('display','none');
			}
			if(finacingCooperation.size()>0){
				panelFinacingCooperation.css('display','none');
			}
			if(finacingTrends.size()>0){
				panelFinacingTrends.css('display','none');
			}			
		});
	}	
	
	
	
	
	
	/**
	* 技术、船配标准
	*/
	var technology=$('#MC_Subscription_Tab_Technology');
	var standard=$('#MC_Subscription_Tab_Standard');
	var technology_standard_more=$('#MC_Subscription_Tab_More_TechnologyStandard');
	
	//初始化MROE链接
	technology_standard_more.attr('href',$($('#TechnologyStandard .kindTabs ul li')[0]).find('a').attr('href').replace('#',''));
	
	//事件绑定-技术选项
	if(technology.size()>0)
	{
		technology.mouseover(function()
		{
			//处理MORE链接			
			technology_standard_more.attr('href',technology.attr('href').replace('#',''));
			//处理选项卡显示
			$('#MC_Subscription_TabPanel_Technology').css('display','block');			
			if(standard.size()>0){
				$('#MC_Subscription_TabPanel_Standard').css('display','none');
			}			
		});
	}
	//事件绑定-船配标准选项
	if(standard.size()>0)
	{		
		standard.mouseover(function()
		{	
			//处理MORE链接
			technology_standard_more.attr('href',standard.attr('href').replace('#',''));
			//处理选项卡显示
			$('#MC_Subscription_TabPanel_Standard').css('display','block');			
			if(standard.size()>0){
				$('#MC_Subscription_TabPanel_Technology').css('display','none');
			}
		});
	}	
});